Ext.onReady(function(){
 
	var simple = new Ext.form.FormPanel({
 
        standardSubmit: true,
 
        frame:true,
        title: 'Enter Domain Location',
 
        width: 350,
        defaults: {width: 230},
        defaultType: 'textfield',
		items: [
		    
		    {
                fieldLabel: 'Domain Name',
                name: 'domainName',
                allowBlank:false
            },
            {
                    fieldLabel: 'Source Docs URL',
                    name: 'domainDocsLocation',
                    allowBlank:false
            },            
			{
                inputType: 'hidden',
                id: 'submitbutton',
                name: 'myhiddenbutton',
                value: 'hiddenvalue'
            }
 
        ],

        buttons: [{
            text: 'Submit',
            handler: function() {
		        simple.getForm().getEl().dom.action = 'domaingen_response.groovy';
	            simple.getForm().getEl().dom.method = 'GET';
                simple.getForm().submit();
            }
        }]
  
    });

    simple.render('domainlocationform');
 
});
